package math
{
	import flash.display.MovieClip;
	import flash.events.Event;
	
	import kim.math.ui.Dot;
	
	/**
	 * 直线方程
	 * @author KimWang
	 * 
	 */
	public class LinearEquation extends MovieClip
	{
		private var list:Array=new Array  ;
		private var angle:Number=36;
		private var R:int=150;
		public function LinearEquation()
		{
			init();
			addEventListener(Event.ENTER_FRAME,Run);
		}
		private function init():void
		{
			for (var i:int=0; i < 20; i++)
			{
				var ball:Dot=new Dot();
				addChild(ball);
				list.push(ball);
				ball.x=50;
				ball.y=60;
			}
			for (var j:int=0; j <=18; j++)
			{
				list[j+1].x= list[j].x + 20;
				list[j+1].y= list[j].y + 15;
			}
		}
		private function Run(e:Event):void
		{
			for (var j:int=0; j <= 19; j++)
			{
				list[j].rotation+=5;
			}
			
		}
	}

}